﻿@{
    Layout = null;
    var currentPage = Html.CurrentPage();
}
@*@if ( currentPage != null && currentPage.SitePageParameters != null)
{
    if ((GKFX.Common.Enumerations.SitePageParameterType)ViewData["type"] == GKFX.Common.Enumerations.SitePageParameterType.CustomMetaTag)
    {
        <!-- Start Of Page Based Meta -->
        List<GKFX.Models.Common.SitePageParameter> metaList = GKFX.Business.Repository.PersistData.CurrentPage.SitePageParameters.Where(p => p.ParamType == (int)GKFX.Common.Enumerations.SitePageParameterType.CustomMetaTag).OrderBy(f => f.Id).ToList();
        foreach (GKFX.Models.Common.SitePageParameter param in metaList)
        {
        <text><meta name="@(Html.Raw(param.ParamName))" content="@(Html.Raw(param.ParamValue))" /></text>
        }
        <!-- End Of Page Based Meta -->
    }

    if ((GKFX.Common.Enumerations.SitePageParameterType)ViewData["type"] == GKFX.Common.Enumerations.SitePageParameterType.Css)
    {
        <!-- Start Of Page Based CSS -->
        List<GKFX.Models.Common.SitePageParameter> cssList = GKFX.Business.Repository.PersistData.CurrentPage.SitePageParameters.Where(p => p.ParamType == (int)GKFX.Common.Enumerations.SitePageParameterType.Css).OrderBy( f => f.Id ).ToList();
        foreach (GKFX.Models.Common.SitePageParameter param in cssList)
        {
        <text><link rel="stylesheet" href="@Url.Content("~" + param.ParamValue)" /></text>
        }
        <!-- End Of Page Based CSS -->
    }

    if ((GKFX.Common.Enumerations.SitePageParameterType)ViewData["type"] == GKFX.Common.Enumerations.SitePageParameterType.Js)
    {
        <!-- Start Of Page Based JS -->
        List<GKFX.Models.Common.SitePageParameter> jsList = GKFX.Business.Repository.PersistData.CurrentPage.SitePageParameters.Where(p => p.ParamType == (int)GKFX.Common.Enumerations.SitePageParameterType.Js).OrderBy(f => f.Id).ToList();
        foreach (GKFX.Models.Common.SitePageParameter param in jsList)
        {
        <text><script type="text/javascript" src="@Url.Content("~" + param.ParamValue)"></script></text>
        }
        <!-- End Of Page Based JS -->
    }*@
}